package com.techstar.api.pojo.bus;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 当年日均营收排名
 * @date 2021年9月27日
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "daily_business_rank")
@org.hibernate.annotations.Table(appliesTo = "daily_business_rank",comment="pbtp-2-当年日均营收排名")
public class DailyBusinessRank {
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '线路标识'")
	private String lineId;
	@Column(columnDefinition="varchar(100) COMMENT '线路名称'")
	private String lineName;
	@Column(columnDefinition="varchar(100) COMMENT '日均客运量'")
	private String avgFlow;
	@Column(columnDefinition="varchar(100) COMMENT '日均营收金额'")
	private String avgTrading;
	@Column(columnDefinition="varchar(100) COMMENT '日均营运班次'")
	private String avgExecuteShiftNum;
	@Column(columnDefinition="varchar(100) COMMENT '日均营运里程'")
	private String avgMileage;
	@Column(columnDefinition="varchar(100) COMMENT '日均单车营收'")
	private String avgTradingByShift;
	@Column(columnDefinition="varchar(100) COMMENT '日均里程客运量'")
	private String avgFlowByMileage;
	@Column(columnDefinition="varchar(100) COMMENT '日均单车客运量'")
	private String avgFlowByShift;
	@Column(columnDefinition="varchar(100) COMMENT '日均车公里营收'")
	private String avgTradingByMileage;
	@Column(columnDefinition="datetime(0) COMMENT '业务更新时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime createTimecreateTime;
}

